<?php

return array(
    'validators' => array(
        'domain' => 'integer',
        'ym' => 'required|dateFormat:Ym',
        'no' => 'integer',
        'history_no' => 'integer',
        'seq' => 'integer',
        'type' => 'required|in:0,1,2',                 // 伝票種類('通常取引'=>0,'開始振替'=>1,'決算振替'=>2)
        'deal' => 'required|in:0,1',                   // 取引種類('振替'=>0,'預金'=>1)
        'approve' => 'integer|in:1',                   // 承認('済'=>1)
        'check' => 'integer',
        'ymd' => 'required|dateFormat:Ymd',
        'd_code' => 'digits:4',
        'd_name' => 'max:40',
        'd_code2' => 'digits:4',
        'd_name2' => 'max:40',
        'd_section' => 'integer',
        'd_section_name' => 'max:40',
        'd_amount' => 'integer',
        'd_amount_tax' => 'integer',
        'd_tax_calc_kbn' => 'required_with:d_amount_tax|integer|in:1,2,3',   // 借方税計算区分('内税'=>1,'外税'=>2,'別記'=>3)
        'd_tax_kbn' => 'required_with:d_amount_tax|integer|in:1,2,3,4',      // 借方税区分('仕カ'=>1,'課売'=>2,'税外'=>3,'清算'=>4,'非売'=>5,'免売'=>6)
        'd_tax_pct' => 'required_with:d_amount_tax|integer',
        'd_tax_pct_kbn' => 'integer',
        'c_code' => 'digits:4',
        'c_name' => 'max:40',
        'c_code2' => 'digits:4',
        'c_name2' => 'max:40',
        'c_section' => 'integer',
        'c_section_name' => 'max:40',
        'c_amount' => 'integer',
        'c_amount_tax' => 'integer',
        'c_tax_calc_kbn' => 'required_with:c_amount_tax|integer|in:1,2,3',   // 貸方税計算区分('内税'=>1,'外税'=>2,'別記'=>3)
        'c_tax_kbn' => 'required_with:c_amount_tax|integer|in:1,2,3,4,5,6',  // 貸方税区分('仕カ'=>1,'課売'=>2,'税外'=>3,'清算'=>4,'非売'=>5,'免売'=>6)
        'c_tax_pct' => 'required_with:c_amount_tax|integer',
        'c_tax_pct_kbn' => 'integer',
        'summary' => 'max:40',
        'tag' => 'max:1',
        'memo' => 'max:150',
        'create_user' => 'required|max:40',
        'update_user' => 'required|max:40',
    ),
    'messages' => array(
        'sum_balance' => 'The total :attribute must match.',
    ),
    'customAttributes' => array(
    ),
);

